package 牛客周赛.牛客周赛Round39;

import java.util.Scanner;

/**
 * @Title: A小红不想做炸鸡块粉丝粉丝题
 * @Author 贾金博
 * @Package 牛客周赛.牛客周赛Round39
 * @Date 2024/4/8 21:08
 * @description:
 */
public class A小红不想做炸鸡块粉丝粉丝题 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long[] a = new long[6];
        long sum = 0;
        for (int i = 0; i < 6; i++) {
            a[i] = sc.nextLong();
            sum += a[i];
        }
        if(a[0] < sum / 30.0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}
